set(L_SML_LIB sml)

file(GLOB_RECURSE SOURCES "*.cpp")
add_library(${L_SML_LIB} SHARED ${SOURCES})
target_include_directories(${L_SML_LIB}
    PUBLIC ${LUACLIB_SRC_DIR}
    PUBLIC ${CONAN_INCLUDE_DIRS}
    PUBLIC ${GLIB_INCLUDE_DIRS}
)
target_link_libraries(${L_SML_LIB}
    PUBLIC ${GLIB_LIBRARIES}
    PUBLIC platform
    PUBLIC ${CONAN_LIBS_HUAWEI_SECURE_C}
    PUBLIC ${GLIB2_LIBRARIES}
    PUBLIC logging
    PUBLIC cutils
    PUBLIC ${CONAN_LIBS_JSON}
)
set_target_properties(${L_SML_LIB} PROPERTIES PREFIX "")
install(TARGETS ${L_SML_LIB} DESTINATION opt/bmc/luaclib)
